const router = require('koa-router')()
const ArticleController = require('./../api/controllers/Article')

router.get('/list', ArticleController.list)
router.put('/update', ArticleController.update)
router.get('/read/:tid', ArticleController.read)
router.post('/create', ArticleController.create)
router.delete('/delete/:tid', ArticleController.delete)

router.get('/hots', ArticleController.hots)

module.exports = router

